﻿namespace WLFramework.Web.Binder
{
    using System.Web;
    using WLFramework.Reflection.Metadata;

    public interface IModelBinder
    {
        ModelExceptionCollection BindModel<TModel>(
            HttpContext context,
            ModelMetadata metadata,
            out TModel model);
#if Net40
        ModelExceptionCollection BindModel<TModel>(
            HttpContextBase context, 
            ModelMetadata metadata, 
            out TModel model);
#endif
    }
}
